package com.zhentao.controller;

import com.zhentao.domain.vo.Result;
import com.zhentao.service.UseBatteryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/useBattery")
@Tag(name = "电池使用管理")
public class UseBatteryController {
    @Autowired
    private UseBatteryService useBatteryService;
    @PostMapping("/addUseBattery")
    @Operation(summary = "添加电池使用记录")
    public Result addUseBattery(String uuid){
        return useBatteryService.addUseBattery(uuid);
    }
}
